package com.vtc.session14;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class MathAdapter {
	
	public String add(String a,String b){		
		
		List<NameValuePair> param = new ArrayList<NameValuePair>();
		param.add(new BasicNameValuePair("num1", a));
		param.add(new BasicNameValuePair("num2", b));
		String total = NetworkRequest.doRequest(param, "http://www.vtc01.byethost7.com/addNum.php");
		return total;
		
	}
}
